#include <cstdio>
#include "../m_apis/epub_zlib_api.h"

static void listener(void *params, char const *name, int step) {
  printf("current step: %d, name: %s\n", step, name);
}

constexpr static char TEST_PATH[] = R"(C:\Work\Projects\Project_CPP\EpubZlib\cmake-build-debug)";
constexpr static char TEST_FILE[] = R"(C:\Work\Projects\Project_CPP\EpubZlib\m_apps\library.cpp)";
constexpr static char TEST_OUT[] =
  R"(C:\Work\Projects\Project_CPP\EpubZlib\cmake-build-debug\wocao.zip)";

auto main() -> int {
  EpubZLIB_Init(0);
  EpubZLIB_Set(0, nullptr, listener);
  EpubZLIB_Add(0, TEST_FILE);
  EpubZLIB_Add(0, TEST_PATH);
  EpubZLIB_Compress(0, TEST_OUT);
  return 0;
}
